/**
 * @title Config.java
 * @description 	网站的配置文件	
 * @create 			2012-7-15 上午10:24:17 By xjiujiu
 * @package 		app.config
 * @copyright 		Copyright (c) 2011-2012 http://xyrj.hhtc.edu.cn.com. All right reserved
 * @version         $Id$
 * XYRJ-Java-Project
 */

package system.config;

import java.util.Hashtable;

import com.xyrj.core.HHObject;
import com.xyrj.core.HHRouter;

/**
 * 网站的配置文件
 * 
 * 包含有当前网站的所有配置
 * 
 * @classname Config
 * @author xjiujiu<xjiujiu@foxmail.com>
 * @date 2012-7-15 上午10:24:17
 * @version 1.0
 */
public class HHConfig extends HHObject
{
	/**
	 * @Fields int 是否调试
	 */
	public static boolean DEBUG = true;

	/**
	 * @Fields boolean OPEN_LOG 是否开启系统日志
	 */
	public static boolean OPEN_LOG = true;

	/**
	 * @Fileds String LOG_CFG_PATH 日志的配置文件路径，相对于src
	 */
	public static String LOG_CFG_PATH = "apps/config/log4j.properties";
	
	/**
	 * @Fields String DB_DRIVER 当前数据库的驱动
	 */
	public static String DB_DRIVER = "com.xyrj.database.jdbc.HHJdbcDriver"; //"com.xyrj.database.hibernate.HHHibernateDriver";

	/**
	 * @Fields String SQL_FACTORY SQL语句实例化工厂
	 */
	public static String SQL_FACTORY = "com.xyrj.sql.HHMysqlSqlFactory";
	
	/**
	 * @Fields String HBM_CFG_PATH hibernate配置文件地址
	 */
	public static String HBM_CFG_PATH = "apps/config/hibernate.cfg.xml";

	/**
	 * @Fields String ROOT_PATH 当前网站的根路径
	 */
	public static String ROOT_PATH = "";

	/**
	 * @Fields String CHARSET 当前的网站编码
	 */
	public static String CHARSET = "UTF-8";

	/**
	 * @Fields String SITE_URL 当前网站的地址
	 */
	public static String SITE_URL = "http://172.28.138.54:8080/MedicalServiceSys";

	/**
	 * @Fields String SITE_NAME 当前网站的名称
	 */
	public static String SITE_NAME = "佛山市第二人民医院医疗服务网站";
	
	/**
	 * @Fields String SEO_KEYWORDS SEO关键字
	 */
	public static String SEO_KEYWORDS 	= "网站医疗服务";
	
	/**
	 * @Fields String SEO_DESC SEO描述信息 
	 */
	public static String SEO_DESC 		= "佛山市第二人民医院网上医疗";

	/**
	 * @Fields String TEMP_DIR 临时目录路径
	 */
	public static String TEMP_DIR = "runtime/temp";

	/**
	 * @Fields String TPL_PATH 当前网站的模板路径
	 */
	public static String TPL_PATH = "public/template";

	/**
	 * @Fields String THEME_PATH 当前网站主题路径
	 */
	public static String THEME_PATH = "public/template/themes";

	/**
	 * @Fields String 网站当前使用的主题名
	 */
	public static String THEME_NAME = "default";

	/**
	 * @Fields String RESOURCE_PATH 当前网站的资源路径
	 */
	public static String RESOURCE_PATH = "public/resource";

	/**
	 * @Fields int URL_MODE 当前的URL解析模式
	 */
	public static int URL_MODE = HHRouter.PATHINF_MODE;

	/**
	 * @Fields String[] PARSE_PARAMS Url解析当前app/model/action的变量名
	 */
	public static String[] PARSE_PARAMS = new String[] { "app", "md", "ac" };

	/**
	 * @Fields String[] APPS 当前网站所支持的应用
	 */
	public static String[] APPS = new String[] { "site", "admin", "install" };

	/**
	 * @Fields Hashtable OTHER_CFG 其它的网站配置内容
	 */
	public static Hashtable<String, String> OTHER_CFG = new Hashtable<String, String>();

	/**
	 * @Fields int MAX_SIZE 上传文件的最大值，单位MB
	 */
	public static int MAX_SIZE = 2;
	/**
	 * @Fileds String C3P0_CFG_PATH c3p0连接池配置文件路径
	 */
	public static String C3P0_CFG_PATH = "src/apps/config/c3p0-config.xml";
	/**
	 * @Fileds boolean 是否打印SQL语句
	 */
	public static boolean SHOW_SQL = true;
	/**
	 * 数据库连接信息
	 */
	public static String DB_DIVERCLASS = "com.mysql.jdbc.Driver";
	public static String DB_URL = "jdbc:mysql://localhost:3306/bysj_medical_service" + 
			"?useUnicode=true&characterEncoding=" +
			CHARSET + "&zeroDateTimeBehavior=convertToNull";
	public static String DB_USER = "root";
	public static String DB_PASSWORD = "123456";
}
